package com.springclouddemo.eurekaclientconsumerfeign.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 何昌杰
 */
@Component
@FeignClient(name = "eureka-client-provider")
public interface ProviderFeign {

    @GetMapping("/hello/{name}")
    String demo1(@PathVariable("name") String name);
}
